Skip to content

Turn on Dependabot auto-merge centrally - #25

Merged
benbirt merged 1 commit into
mainfrom
central-auto-merge
Nov 29, 2026
Merged

benbirt merged 1 commit into
mainfrom
central-auto-merge

Conversation

@benbirt

@benbirt benbirt commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Step 5, second half, on top of #24 (merged).

  • dependabot-auto-merge.yaml (new), hourly at :23 and on manual runs. For every managed repository whose auto_merge is not false, it turns on auto-merge (squash) for each open, non-draft Dependabot pull request that does not have it yet, using AUTOMATION_TOKEN. The merge then waits for that repository's required checks.
  • auto_merge becomes a per-repository field in repos.jsonnet (default true), replacing bazel_updates.auto_merge. It covers both Dependabot and the Bazel updates.
Repository Before After
bazel-style, flip7-scorecard, tlog-viewer, cv per-repository workflow central, hourly
benbirt.io, eavesbard, song-of-time manual auto-merge
rules_tofu manual (Dependabot and Bazel updates) auto-merge; a raised Go floor goes in the release notes
git-witness manual manual: no required checks, so it would merge untested. Until it has a test of the cosign action.
github-infra manual Dependabot; Bazel updates auto-merged both manual until #21: provider updates would apply unplanned. Its Bazel updates waiting is a side effect of the single field.

Before it works everywhere

  • song-of-time is not in the "benbirt automation" token's repository access, so its pull requests would fail with an error (which fails the run) until it is added. Every other repository above is reachable (checked).
  • Afterwards, one pull request per repository deletes its own dependabot-auto-merge.yaml (bazel-style, flip7-scorecard, tlog-viewer, cv) and its bazel-updates.yaml caller (from Run the Bazel updates centrally #24), and I'll remove AUTOMATION_TOKEN from their Dependabot secrets.

Testing

actionlint and the repository checks pass. There are no open Dependabot pull requests in the eight repositories right now, so the first manual run should do nothing. The next real test is next week's Dependabot run.

The comments and README section were written by Neon.

🤖 Generated with Claude Code

Base automatically changed from central-bazel-updates to main November 29, 2026 08:08
dependabot-auto-merge.yaml turns on auto-merge hourly for Dependabot's
pull requests in every managed repository whose auto_merge is not
false. auto_merge becomes a per-repository field, for the Bazel updates
too. git-witness and github-infra opt out until they can test what they
would merge; rules_tofu no longer does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@benbirt
benbirt merged commit 05e93f2 into main Nov 29, 2026
2 checks passed
@benbirt
benbirt deleted the central-auto-merge branch November 29, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant